package com.one.service.impl;

import com.one.dao.cartDao;
import com.one.dao.impl.cartDaoImpl;
import com.one.pojo.Cart;
import com.one.service.cartService;

import java.util.List;

/**
 * @author LJ
 * @create 2022-04-25-16:33
 */
public class cartServiceImpl implements cartService {
    cartDao cart=new cartDaoImpl();
    @Override
    public boolean save(Cart cart) {
        return this.cart.save(cart);
    }

    @Override
    public List<Cart> allCart() {
        return this.cart.allCart();
    }
}
